import request from '@/utils/request'

export function listDataStation(query) {
  return request({
    url: '/DataStation/dataStation/list',
    method: 'get',
    params: query
  })
}


export function getDataStation(id) {
  return request({
    url: '/DataStation/dataStation/' + id,
    method: 'get'
  })
}

// 删除
export function delDataStation(id) {
  return request({
    url: '/DataStation/dataStation/' + id,
    method: 'delete'
  })
}

// 新增
export function addDataStation(data) {
  return request({
    url: '/DataStation/dataStation/',
    method: 'post',
    data: data
  })
}
